(C) 1996 AROS - The Amiga Replacement OS


NAME
BYTE OpenDevice()
SYNOPSIS
STRPTR devName
ULONG unitNumber
struct IORequest * iORequest
ULONG flags

LOCATION
In SysBase at offset 74
FUNCTION
Tries to open a device and fill the iORequest structure. An error is returned if this fails, 0 if all went well.

INPUTS
devName
Pointer to the devices's name.
unitNumber
The unit number. Most often 0.
iORequest
Pointer do device specific information. Will be filled out by the device. Must lie in public (or at least shared) memory.
flags
Some flags to give to the device.
RESULT
Error code or 0 if all went well. The same value can be found in the io_Error field.

NOTES
EXAMPLE
BUGS
SEE ALSO
CloseDevice()
INTERNALS
HISTORY
12.05.1997 aros
Fixed all headers
29.03.1997 ldp
Added const to static text
15.03.1997 ldp
AROSfA: added kludge for V40 kickstart compatibility
06.03.1997 ldp
Removed log.

Add debugging.

Typos.

Clear iORequest->io_Unit before calling the DEVOPEN() vector.

Removed iORequest->io_Flags and iORequest->io_Message.mn_Node.ln_Type field initialisations. They crash AmigaOS.

Changed AROS_LVO_CALL3 to AROS_LVO_CALL3NR.

07.01.1997 digulla
Removed AROS_LVO_CALL*NR() macros
01.01.1997 ldp
Committed Amiga native (support) code

Changed clib to proto

10.12.1996 aros
Moved all #include's in the first column so makedepend can see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
13.08.1996 digulla
Replaced __AROS_LA by __AROS_LHA Replaced some __AROS_LH*I by __AROS_LH* Sorted and added includes
01.08.1996 digulla
Added standard header for all files
01.08.1996 digulla
Added copyright notics and made headers conform
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS